﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BrandManage.aspx.cs" Inherits="SJZD_TypeManage" %>
<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<html>
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>商品品牌管理</title>
<link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/changerows.js"></script>
<script type="text/javascript">
function CheckAll(form) {
    for (var i=0;i<form.elements.length;i++) {
	    var e = form.elements[i];
	    if (e.name != 'chkall' && e.type=='checkbox')
		    e.checked = form.chkall.checked;
    }
}
</script>
<link href="../js/loading.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/loading.js" charset="gb2312"></script>
<body style="text-align: center">
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
    <td width="2%" height="1%"><img src="../images/module.gif" width="20" height="22"></td>
    <td style="width: 310px; text-align: left;">
        &nbsp;<asp:Label ID="lblwz" runat="server"></asp:Label></td>
    <td width="990" align="right"><img src="../images/search.gif" alt="搜索" width="16" height="16"/>类型名称：<asp:TextBox
            ID="txtselectype" runat="server" CssClass="input1"></asp:TextBox>
        品牌编号：<asp:TextBox
            ID="txtselecName" runat="server" CssClass="input1"></asp:TextBox>
        <asp:Button ID="btnSelec" runat="server" Text="搜索" CssClass="submit" CausesValidation="False" OnClick="btnSelec_Click"   /></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#3CB6E5" height="5px"></td>
  </tr>
</table>
        <asp:GridView ID="GvDataBand" runat="server" CssClass="gridview" Width="99%" AutoGenerateColumns="False"
            DataKeyNames="BrandId" RowStyle-HorizontalAlign="center" EmptyDataText="没有数据" OnRowDataBound="GvDataBand_RowDataBound" >
            <Columns>
                <asp:BoundField DataField="BrandId" HeaderText="品牌Id">
                </asp:BoundField>
                <asp:BoundField DataField="brandbh" HeaderText="品牌编号" />
                <asp:BoundField DataField="ComoditiesType" HeaderText="商品类型" />
                <asp:BoundField DataField="Brand" HeaderText="商品品牌" />
                <asp:BoundField DataField="Stock" HeaderText="型号记录" />
                <asp:BoundField DataField="UserName" HeaderText="编辑人" />
                <asp:BoundField DataField="usTime" HeaderText="编辑时间" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkBtnEdit" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("BrandId") %>' OnClick="lnkbtnEdit_Click" >修改</asp:LinkButton>
                        <asp:LinkButton ID="lnkBtnDeleted" CssClass="lnkbtn" runat="server" CommandArgument='<%#Eval("BrandId") %>' OnClientClick="return confirm('确定要删除吗?')">删除</asp:LinkButton>
                    </ItemTemplate>
                   
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td style="width: 10%">
                </td>
                <td align="right">
                    <uc1:PageNavigator ID="PageNavigator1" runat="server" DataId="GvDataBand" ConnectionString="connstr" ShowType="Text" PageSize="20" />
                </td>
            <td height="5" align="right">
            <asp:Button ID="btnAdd" runat="server" Text="添加" CssClass="submit" CausesValidation="False" OnClick="btnAdd_Click"   />

        
        </td>
      </tr>
      </table>
         
       <asp:HiddenField ID="hfxs" runat="server" />
        <asp:HiddenField ID="hfcheck" runat="server" />
        &nbsp;
         <asp:HiddenField ID="hfuserId" runat="server" />
         <asp:HiddenField ID="hfLevels" runat="server" />
        
        
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("GvDataBand","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>